package com.learn.hibernatevalidator.chapter02.containerelement.list;


import java.util.ArrayList;
import java.util.List;

/**
 * @author: liyf
 * @create: 2024-12-19 23:16
 **/
public class Car {
    private List<@ValidPart(message = "不能包含 null") String> parts = new ArrayList<>();

    public void addPart(String part) {
        parts.add(part);
    }
}
